package cn.com.nes.site.controller.crm.opportunity.vo;

import cn.com.nes.site.entity.vo.BaseVO;
import cn.com.nes.site.service.crm.opportunity.bo.QueryOpportunityBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "获取客户的商机列表入参模型")
@Data
public class QueryOpportunityVO extends BaseVO {

    @ApiModelProperty(value = "客户UUID")
    private String customerId;

    @ApiModelProperty(value = "商机UUID")
    private String opportunityId;

    @ApiModelProperty(value = "上级行政区划")
    private String areaCode;

    public QueryOpportunityBO convertToQueryOpportunityBo() {
        QueryOpportunityBO queryOpportunityBo = new QueryOpportunityBO();
        queryOpportunityBo.setCustomerUuid(customerId);
        queryOpportunityBo.setOpportunityUuid(opportunityId);
        BeanUtils.copyProperties(this, queryOpportunityBo);
        return queryOpportunityBo;
    }

}
